{% extends "admin/__base.html" %}
{% block title %}后台管理-全部类别{% endblock %}
{% block head%}<link href="{{url_for('static',filename='css/admin-categories-list.css')}}" rel="stylesheet" type="text/css" />{%endblock%}
{% block right%}
<table class='simplelist'>
	<tr class='title'>
		<td>ID</td><td>类别标题</td>	<td>文章数</td><td>操作</td>
	</tr>
{%for c in categories%}
	<tr>
		<td>
			{{c.id}}
		</td>
		<td>
			{{c.title}}
		</td>
		<td>
			{{c.articlecount}}
		</td>
		<td>
			<a href="{{url_for('categories_update',id=c.id)}}">编辑</a> <a href="{{url_for('categories_delete',id=c.id)}}" onclick="if(!confirm('删除后此类下面的文章将会归入无类别文章,是否确定要删除此类?')){return false;}">删除</a>
		</td>
	</tr>
{%endfor%}
</table>
{% endblock%}